package vshevchuk;

import java.lang.reflect.Field;

public class Conv_CSV extends ICONV 
{
	{
		name = "CSV";
	}
	@Override	
	public String toString ( Base p) throws Exception
	{
		String str = "";
		
		Class<? extends Base> cl = p.getClass();
		str += cl.getSimpleName();
		str += ";";
		Field[] fld = cl.getDeclaredFields();
		for( int i = 0; i < fld.length; ++i )
		{
			str += fld[i].toString() + ";";
		}
		
		return str;
	}
	
	@Override	
	public Base fromString ( String str ) throws Exception 
	{
		Base b = null;
		
		
		return b;
	}

}
